home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / launcher / java.h < prev   
Encoding:
C/C++ Source or Header  |  1999-05-28  |  1.1 KB  |  45 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)java.h    1.9 98/06/29
  3.  *
  4.  * Copyright 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. #ifndef _JAVA_H_
  16. #define _JAVA_H_
  17.  
  18. /*
  19.  * Get system specific defines.
  20.  */
  21. #include "jni.h"
  22. #include "java_md.h"
  23.  
  24. /*
  25.  * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
  26.  */
  27. typedef struct {
  28.     jint (JNICALL *CreateJavaVM)(JavaVM **pvm, void **env, void *args);
  29.     jint (JNICALL *GetDefaultJavaVMInitArgs)(void *args);
  30. } InvocationFunctions;
  31.  
  32. /*
  33.  * Protoypes for launcher functions in the system specific java_md.c.
  34.  */
  35. jboolean LoadJavaVM(char *jvmtype, InvocationFunctions *ifn);
  36. void GetXUsagePath(char *buf, jint bufsize);
  37. jboolean GetApplicationHome(char *buf, jint bufsize);
  38.  
  39. /*
  40.  * Make launcher spit debug output.
  41.  */
  42. extern jboolean debug;
  43.  
  44. #endif /* _JAVA_H_ */
  45.